package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Position;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PositionMapper {

    int deleteByPrimaryKey(String tid);

    int insert(Position record);

    int insertSelective(Position record);

    Position selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(Position record);

    int updateByPrimaryKey(Position record);

    List<String> selectListTidBySearch(@Param("key") String key);

    List<Position> findPagingByListTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    Position selectPositionByField(@Param("positionname") String positionname);

    Position selectPositionByFieldByNOTID(@Param("tid") String tid, @Param("positionname") String positionname);

    List<Position> selectListPosition();

}